package com.lebang.mapper;

import com.lebang.domain.IpLoginRecord;
import com.lebang.example.IpLoginRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDateTime;

/**
 * IpLoginRecordMapper继承基类
 */
@Mapper
public interface IpLoginRecordMapper extends MyBatisBaseDao<IpLoginRecord, Integer, IpLoginRecordExample> {

    Integer selectByMemberId(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end, @Param("memberId") String memberId);

    IpLoginRecord selectOneByMemebrId(@Param("memberId") String memberId);

    Integer countByTime(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end, @Param("ipAddr") String ipAddr);
}